﻿@model object
@{ var guid = Guid.NewGuid(); ViewData.TemplateInfo.HtmlFieldPrefix = ViewData.TemplateInfo.HtmlFieldPrefix.Replace(ViewData.ModelMetadata.PropertyName,
"").Trim('.'); var propertyName = ViewData["name"] == null ? ViewData.ModelMetadata.PropertyName
: ViewData["name"].ToString(); }
<tr>
    <th>
        <label for="@ViewData.TemplateInfo.GetFullHtmlFieldId(propertyName)">
            @ViewData.ModelMetadata.GetDisplayName().Localize()</label>
        @if (!string.IsNullOrEmpty(ViewData.ModelMetadata.Description)){ <a href="javascript:;"
            class="tooltip-link" title="@ViewData.ModelMetadata.Description "></a>}
    </th>
    <td>
        @Html.TextBox(propertyName, Model, Html.GetUnobtrusiveValidationAttributes(propertyName,ViewData.ModelMetadata).Merge("class",ViewData["class"]).Merge("value-type","float"))
        @Html.ValidationMessage(ViewData.ModelMetadata, new { name = ViewData["name"] })
    </td>
</tr>
